package com.example.elasticsearch;

import org.apache.log4j.Logger;

/**
 * @Description:
 * @Author: dengping.xu
 * @Data: 2021-11-04
 */
public class Log4jDemo {

    private static final Logger LOGGER = Logger.getLogger(Log4jDemo.class);
    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 100; i++) {
            LOGGER.error("Info log [" + i + "].");
            Thread.sleep(500);
        }
    }
}
